package cn.david.org.mapper;

import cn.david.org.domain.Department;
import cn.david.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    void save(Department department);
    void update(Department department);
    void remove(Long id);
    Department loadById(Long id);
    List <Department> loadAll();
    Integer queryCount(DepartmentQuery query);
    List <Department> queryData(DepartmentQuery query);

    void deleteByIds(Long[] ids);

    List<Department> getDeptTree();
}
